<?php
// 本类由系统自动生成，仅供测试用途
namespace Admin\Controller;
use Think\Controller;

class ComController extends Controller
{

    public $_time ;
    public $_uid ;
    public $_page_item_num;
    public $_username;
    public $_expire;
    public function _initialize()
    {                          
        $this->_time = time();
        $this->_uid = session('admin_uid');
        $this->_page_item_num = 30; 
        $this->_expire = 604800;
        $this->_username = session('admin_username');
        if(!in_array(CONTROLLER_NAME, array('Index')) && !$this->_uid)
        {            
            $this->error('请登录...',U('Admin/Index/index'));
        } 
          
       
    }
    
   
}
